﻿using Smobiler.Core;
using Smobiler.Core.Controls;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FubiManger.Controls;

namespace FubiManger.UI
{
    partial class PacketlevelForm : Smobiler.Core.Controls.MobileForm
    {
        public PacketlevelForm() : base()
        {
            //This call is required by the SmobilerForm.
            InitializeComponent();
        }
        public string level { get; set; }
        private void panclose_Press(object sender, EventArgs e)
        {
            this.Close();
        }

        private void PacketlevelForm_Load(object sender, EventArgs e)
        {
            for (int i = 1; i < 8; i++)
            {
                packetlevelcontrol con = new packetlevelcontrol();
                con.level = i.ToString();
                panlevel.Controls.Add(con);
            }
        }
        /// <summary>
        /// 选择level
        /// </summary>
        /// <param name="lv"></param>
        public void Chooselevel(string lv)
        {
            level = lv;
            this.Close();
        }
    }
}